<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><%= htmlWebpackPlugin.options.title%></title>

	<script type="text/javascript">
		<%      
		var str=htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)
		%>
		<%=
			compilation.assets[str].source()

		%>
	</script>


</head>
<body>



    <% for(var k in htmlWebpackPlugin.files.chunks){   %>
			<% if (k !=='main'){   %>
			   <script type="text/javascript" src="<%=htmlWebpackPlugin.files.chunks[k].entry%>"></script>
			<%}%>	
	<%} %>


</body>
</html>